import ReactApp from './@zrv/ReactApp'
import NavBar from './components/NavBar'
import React from 'react'
import store from './store'
import router from './router'

const App = ({ children }) => (
  <>
    <NavBar />
    {children}
  </>
)

new ReactApp({
  store,
  router,
  render: mount => mount(App, '#root')
})

// 模块热替换的 API
if (module.hot) {
    module.hot.accept();
}